<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search Flight</title>
</head>
<body>
		<div class="post">
			<h2 class="title"><a href="#">Hasil Pencarian </a></h2>
			<div class="entry">
			<table width="100%">
			  <tr>
			    <th>Airline</th>
			    <th>No Flight</th>
			    <th>Kota Asal</th>
			    <th>Berangkat</th>
			    <th>Kota Tujuan</th>
			    <th>Tiba</th>
			    <th>Harga</th>
			  </tr>
			  <c:forEach var="flight" items="${flightList}">
			  <tr>
			    <td><c:out value="${flight.airline}"/></td>
			    <td><c:out value="${flight.code}"/></td>
			    <td><c:out value="${flight.origin}"/></td>
			    <td><fmt:formatDate value="${flight.departure}" type="both" timeStyle="short" dateStyle="short" /></td>
			    <td><c:out value="${flight.destination}"/></td>
			    <td><fmt:formatDate value="${flight.arrival	}" type="both" timeStyle="short" dateStyle="short" /></td>
			    <td><c:out value="${flight.price}"/></td>
			  </tr>
			  </c:forEach>
			</table>

			</div>	
		</div>

</body>
</html>